
package com.dc.base;

import lombok.Data;

/**
 * @author: KEYD
 * @Date: 2019/12/27 13:02
 * @Desc: 微服务接口，统一返回码
 */
@Data
public class BaseResponse<T> {

    /**
     * 返回码
     * 消息
     * 数据
     */
    private Integer rtnCode;
    private String msg;
    private T data;

    public BaseResponse() {

    }

    public BaseResponse(Integer rtnCode, String msg, T data) {
        super();
        this.rtnCode = rtnCode;
        this.msg = msg;
        this.data = data;
    }

}
